package br.com.andreikeda.utility.gestor.finance.storage.database.interfaces;

import android.content.ContentValues;
import android.database.sqlite.SQLiteDatabase;

import java.util.List;

/**
 * Created by LimaoGames on 22/01/2015.
 * contact me: andreikeda87@gmail.com
 */
public interface DAOCommonMethods {
    public boolean delete(SQLiteDatabase mLite, Object object);

    public void deleteAll(SQLiteDatabase mLite, String whereClause, String[] whereArgs);

    public boolean insert(SQLiteDatabase mLite, Object object);

    public List<Object> list(SQLiteDatabase mLite);

    public List<Object> listFrom(SQLiteDatabase mLite, String whereClause, String[] whereArgs);

    public boolean update(SQLiteDatabase mLite, Object object);

    public void updateAll(SQLiteDatabase mLite, ContentValues cv, String whereClause, String[] whereArgs);
}
